<?php

$_this =& $this;

/* @var $_this View */
/* @var $form FormHelper */
/* @var $editForm EditFormHelper */
/* @var $html HtmlHelper */
/* @var $ehtml EHtmlHelper */
/* @var $javascript JavascriptHelper */
/* @var $jqax JqaxHelper */
/* @var $filterBlock FilterBlock */

?><?=$editForm->create($modelName, array('url'=>("/{$url_part}/".$this->data[$modelName][$PKName].'/'), 'allowInput' => false));?><?php

    if (!empty($this->data[$modelName]['subject'])) {
    	?><?=$editForm->startSet();?><?php
        	?><?=$editForm->cell($this->data[$modelName]['subject']);?><?php
    	?><?=$editForm->endSet();?><?php
    }

	ob_start();
	if (!empty($this->data[$modelName]['content'])) {
	    ?><?=$this->data[$modelName]['content'];?><?php
	} else {
        ?><span class="additional_msg"><?php
            ?><?=__d($po_domain, 'body_is_empty', true);?><?php
        ?></span><?php
	}
	?><?=$editForm->cell(ob_get_clean());?><?php

	$buttonsHTML = '';
	$buttonsHTML .= (strlen($buttonsHTML) ? ' ' : '').$editForm->back(env("HTTP_REFERER") ? env("HTTP_REFERER") : "/{$url_part}/");
	if (strlen($buttonsHTML)) {
    	?><?=$editForm->cell($buttonsHTML);?><?php
	}

?><?=$editForm->end();?><?php

?>
